#include"process.h"

void download(CALL_BACK cb)
{
  double total = 0;
  int target_size = 100;
  
  while(total <= target_size)
  {
    double rate = total*100.0/target_size;
    cb(rate);
    usleep(STIME);
    total = total + 0.1;
  }
  cb(100);
  printf("\n");
}

int main()
{
  download(process);
  return 0;
}
